JavaScript

{grid.object}loadCSSFile Method

Syntax

{grid.Object}.loadCSSFile(CSSFilename, flagForceLoad)

Arguments

CSSFilenameString

The CSS filename to be loaded.

flagForceLoadBoolean

Logical, true = load files even if they have already been loaded.

Description

Loads CSS from a file. If the flagForeLoad argument is true then the CSS file is loaded even if it has been previously loaded. The default value for flagForceLoad is false.

Example

mycss.css is loaded from the same folder in the webroot as the current component.

{grid.Object}.loadCSSFile('mycss.css');

See Also